package com.timebank.volunteer.service;

import com.timebank.common.core.web.pojo.AjaxResult;
import com.timebank.volunteer.pojo.vo.VolunteerSignListVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 志愿服务 签到名单 实现类
 * @author shiliuyinzhen
 */
@Service
public interface VolunteerSignListService {

    /**
     * 根据志愿服务id获取签到名单
     * @param volunteerId
     * @return
     */
    List<VolunteerSignListVO> getSignListByVolunteerId(Long volunteerId);

    /**
     * 志愿者签到
     * @param volunteerId
     * @return
     */
    AjaxResult insertSignList(Long volunteerId);

    /**
     * 获取志愿者签到记录
     * @param volunteerId
     * @param userId
     * @return
     */
    List<VolunteerSignListVO> getSignListByVolunteerIdAndUserId(Long volunteerId, Long userId);

    /**
     * 检验是否签到
     *
     * @param volunteerId
     * @param userId
     * @return
     */
    Boolean checkSign(Long volunteerId,Long userId);
}
